package com.zsy.yygh_hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//设置扫描包的规则
@ComponentScan(basePackages = "com.zsy")
@EnableDiscoveryClient //nacos 注册
//进行远程调用:@FeignClient("service-cmn") ,没在一个服务中的话需要扫描包：basePackages = "com.zsy"
@EnableFeignClients(basePackages = "com.zsy")
public class  ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
